import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import login from '@/pages/login/Login'//登陆
import Head from '@/pages/Head'//首页
import ChPass from '@/pages/amend/ChPass'//修改密码
import Parameter from '@/pages/system/Parameter'//基本参数设置
import Cache from '@/pages/system/Cache'//缓存机制设置
import Server from '@/pages/system/Server'//直播服务器设置
import Earnings from '@/pages/system/Earnings'//收益分成设置
import Slide from '@/pages/system/Slide'//首页轮播图设置
import AdminList from '@/pages/amend/Addadmin'//管理员管理
import Uall from '@/pages/users/Uall'//所有用户列表
import Contract from '@/pages/users/Contract'//签约主播列表
import ULine from '@/pages/users/ULine'//在线主播列表
import UDel from '@/pages/users/UDel'//删除主播列表
import Grade from '@/pages/users/Grade'//主播等级设置
import Rgrade from '@/pages/users/Rgrade'//财富等级设置
import Report from "@/pages/users/Report"//举报查看
import Gall from '@/pages/gift/Gall'//礼物列表
import Nall from '@/pages/mnumber/Nall'//靓号管理
import Rgame from '@/pages/game/Rgame'//魔方游戏设置
import Win from '@/pages/game/Win'//魔方中奖记录
import PayApi from '@/pages/pay/PayApi'//支付接口设置
import Recharge from '@/pages/finance/Recharge'//用户充值记录
import Consume from '@/pages/finance/Consume'//用户消费记录
import AdminRecord from '@/pages/finance/AdminRecord'//管理员加值记录
import Detail from '@/pages/account/Detail'//主播收入
import Aaccount from '@/pages/account/Aaccount'//主播结算记录
import SqlList from '@/pages/sql/SqlList'//数据列表
import Body from '@/pages/Body'//首页
import Examine from '@/pages/users/Examine'//实名认证
import Unrevised from '@/pages/apply/Unrevised' //工会列表
import Index from '@/components/index'
import Udetail from '@/pages/Union/Twodetail'//工会结算
import Verified from '@/pages/apply/Verified'//工会审核
import Pass from '@/pages/apply/Pass'
import Recommend from '@/pages/users/Recommend'
import Category from '@/pages/system/Category'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path:"/login",
      name:"login",
      component: login,
    },

    {
      path:"/Head",
      name:"Head",
      component: Head,
      meta: {requireAuth: true,jurisdiction:1},
      children:[
        {
          path:'/Head/Body',
          name:'Body',
          component:Body,
          meta:{requireAuth:true,jurisdiction:1},
        },
        {
          path:'/Head/Category',
          name:'Category',
          component:Category,
          meta:{requireAuth:true,jurisdiction:1},
        },
        {
          path:'/Head/ChPass',
          name:'ChPass',
          component:ChPass,
          meta:{requireAuth:true,jurisdiction:1},

        },
        {
          path:'/Head/Parameter',
          name:'Parameter',
          component:Parameter,
          meta:{requireAuth:true,jurisdiction:0}
        },
        {
          path:'/Head/Cache',
          name:'Cache',
          component:Cache,
          meta:{requireAuth:true,jurisdiction:0}
        },
        {
          path:'/Head/Server',
          name:'Server',
          component:Server,
          meta:{requireAuth:true,jurisdiction:0}
        },
        {
          path:'/Head/Earnings',
          name:'Earnings',
          component:Earnings,
          meta:{requireAuth:true,jurisdiction:0}
        },

        {
          path:'/Head/Slide',
          name:'Slide',
          component:Slide,
          meta:{requireAuth:true,jurisdiction:1}
        },
        {
          path:'/Head/AdminList',
          name:'AdminList',
          component:AdminList,
          meta:{requireAuth:true,jurisdiction:1}
        },
        {
          path:'/Head/Uall',
          name:'Uall',
          component:Uall,
          meta:{requireAuth:true,jurisdiction:1}
        },
        {
          path:'/Head/Contract',
          name:'Contract',
          component:Contract,
          meta:{requireAuth:true,jurisdiction:1}
        },
        {
          path:'/Head/ULine',
          name:'ULine',
          component:ULine,
          meta:{requireAuth:true,jurisdiction:1}
        },
        {
          path:'/Head/UDel',
          name:'UDel',
          component:UDel,
          meta:{requireAuth:true,jurisdiction:1}
        },
        {
          path:'/Head/Grade',
          name:'Grade',
          component:Grade,
          meta:{requireAuth:true,jurisdiction:1}
        },
        {
          path:'/Head/Rgrade',
          name:'Rgrade',
          component:Rgrade,
          meta:{requireAuth:true,jurisdiction:1}
        },
        {
          path:'/Head/Gall',
          name:'Gall',
          component:Gall,
          meta:{requireAuth:true,jurisdiction:1}
        },
        {
          path:'/Head/Nall',
          name:'Nall',
          component:Nall,
          meta:{requireAuth:true,jurisdiction:1}
        },

        {
          path:'/Head/Rgame',
          name:'Rgame',
          component:Rgame,
          meta:{requireAuth:true,jurisdiction:1}
        },
        {
          path:'/Head/Win',
          name:'Win',
          component:Win,
          meta:{requireAuth:true,jurisdiction:1}
        },

        {
          path:'/Head/Recharge',
          name:'Recharge',
          component:Recharge,
          meta:{requireAuth:true,jurisdiction:1}
        },
        {
          path:'/Head/Consume',
          name:'Consume',
          component:Consume,
          meta:{requireAuth:true,jurisdiction:1}
        },
        {
          path:'/Head/AdminRecord',
          name:'AdminRecord',
          component:AdminRecord,
          meta:{requireAuth:true,jurisdiction:1}
        },
        {
          path:'/Head/Detail',
          name:'Detail',
          component:Detail,
          meta:{requireAuth:true,jurisdiction:1}
        },
        {
          path:'/Head/Aaccount',
          name:'Aaccount',
          component:Aaccount,
          meta:{requireAuth:true,jurisdiction:1}
        },
        {
          path:'/Head/SqlList',
          name:'SqlList',
          component:SqlList,
          meta:{requireAuth:true,jurisdiction:1}
        },
        {
          path:'/Head/PayApi',
          name:'PayApi',
          component:PayApi,
          meta:{requireAuth:true,jurisdiction:0}
        },
        {
          path:'/Head/Examine',
          name:'Examine',
          component:Examine,
          meta:{requireAuth:true,jurisdiction:1}
        },
        {
          path:'/Head/Unrevised',
          name:'Unrevised',
          component:Unrevised,
          meta:{requireAuth:true,jurisdiction:1}
        },
        {
          path:'/Head/Report',
          name:'Report',
          component:Report,
          meta:{requireAuth:true,jurisdiction:1}
        },

        {
          path:'/Head/Udetail',
          name:'Udetail',
          component:Udetail,
          meta:{requireAuth:true,jurisdiction:1}
        },
        {
          path:'/Head/Verified',
          name:'Verified',
          component:Verified,
          meta:{requireAuth:true,jurisdiction:1}
        },
        {
          path:'/Head/Pass',
          name:'Pass',
          component:Pass,
          meta:{requireAuth:true,jurisdiction:1}
        },
        {
          path:'/Head/Recommend',
          name:'Recommend',
          component:Recommend,
          meta:{requireAuth:true,jurisdiction:1}
        } ,
        //******************
        {//游戏类型
          path:'/Head/gameType',
          name:'gameType',
          component: resolve=>(require(['@/pages/accompany/gameType'],resolve)),
          meta:{requireAuth:true,jurisdiction:1}
        },
        {//游戏区服
          path:'/Head/gameZone',
          name:'gameZone',
          component: resolve=>(require(['@/pages/accompany/gameZone'],resolve)),
          meta:{requireAuth:true,jurisdiction:1}
        },
        {//游戏等级
          path:'/Head/gameLevel',
          name:'gameLevel',
          component: resolve=>(require(['@/pages/accompany/gameLevel'],resolve)),
          meta:{requireAuth:true,jurisdiction:1}
        },
        {//陪玩状态审核
          path:'/Head/gameStatusCheck',
          name:'gameStatusCheck',
          component: resolve=>(require(['@/pages/accompany/gameStatusCheck'],resolve)),
          meta:{requireAuth:true,jurisdiction:1}
        },
        {//cp设置
          path:'/Head/cpSet',
          name:'cpSet',
          component: resolve=>(require(['@/pages/accompany/cpSet'],resolve)),
          meta:{requireAuth:true,jurisdiction:1}
        },
        {//标签
          path:'/Head/labelSetting',
          name:'labelSetting',
          component: resolve=>(require(['@/pages/accompany/labelSetting'],resolve)),
          meta:{requireAuth:true,jurisdiction:1}
        }
      ]
    },


    {path: '*', redirect: { name: 'login' }}
  ]
})
